
var SharePosition = window.localStorage.getItem(sharePosition);

function onoffSharePosition(){ 	
	if (SharePosition==true){
		 $("option.on-share").click(function() { 	
			$(this).addClass("selected");
		});
	}else{
		 $("option.off-share").click(function() { 	
			$(this).addClass("selected");
		});
	}
}

var ShowUsersOnMap = window.localStorage.getItem(showUsersOnMap);
function onoffShowUsersOnMap(){ 	
	if (ShowUsersOnMap==true){
		 $("option.on-vloveur").click(function() { 	
			$(this).addClass("selected");
		});
	}else{
		 $("option.off-vloveur").click(function() { 	
			$(this).addClass("selected");
		});
	}
}
$(".page-parameters").on("pageshow", function (event) {
	$('.menu').load('menu.html',function(){ $('#menu').panel(); });
	onoffSharePosition();
	onoffShowUsersOnMap();
});